<include file="Common:header" />
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        权限管理
        <small>{$actionTitle}</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">权限管理</li>
        <li class="active">{$actionTitle}</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="box">
        <div class="box-header">
            <span>
              <a href="{$urlController}/create" class="btn btn-primary btn-sm"><i class="fa fa-plus"></i> 创建 </a>
            </span>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
          <table id="list" class="table table-bordered table-striped">
            <thead>
              <tr>
                <th>ID</th>
                <th>名称</th>
                <th>备注</th>
                <th>权限</th>
                <th>添加时间</th>
                <th>操作</th>
              </tr>
            </thead>
            <?php
              if(!empty($list)){
            ?>
            <tbody>
              <?php
                foreach($list as $value){
              ?>
            <tr>
              <td><b>{$value['id']}</b></td>
              <td>{$value['title']}</td>
              <td>{$value['content']}</td>
              <td style="max-width: 500px;">{$value['menuNameList']}</td>
              <td><?php echo date('Y-m-d H:i:s', $value['addtime']);?></td>
              <td>
                <span>
                  <a href="{$urlController}/edit?id={$value['id']}" class="btn btn-default btn-sm"><i class="fa fa-edit"></i> 编辑 </a>
                </span>
                <span>
                  <a href="{$urlController}/delete?id={$value['id']}" class="btn btn-danger btn-sm"><i class="fa fa-trash-o"></i> 删除 </a>
                </span>
              </tr>
            <?php }?>
            </tbody>
            <?php }?>
          </table>
        </div>
        <!-- /.box-body -->
      </div>
    </section>
    <!-- /.content -->
  </div>
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<include file="Common:footer" />
<!-- SlimScroll -->
</body>
</html>
